package com.appspot.abcensys.shared;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.gwt.user.client.rpc.IsSerializable;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class GebruikerInstelling implements IsSerializable {
	
	private static final long serialVersionUID = 1L;
	
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long instellingId;
	@Persistent
	private String gebruikerEmail;
	@Persistent
	private boolean emailPerAfmelding;
	@Persistent
	private boolean emailPerDag;
	@Persistent
	private boolean emailPerWeek;
	@Persistent
	private boolean emailPerMaand;
	
	/**
	 * @return the instellingId
	 */
	public Long getInstellingId() {
		return instellingId;
	}

	/**
	 * @param instellingId the instellingId to set
	 */
	public void setInstellingId(Long instellingId) {
		this.instellingId = instellingId;
	}
	
	/**
	 * @return the gebruikerId
	 */
	public String getGebruikerEmail() {
		return gebruikerEmail;
	}
	
	/**
	 * @param gebruikerId the gebruikerId to set
	 */
	public void setGebruikerEmail(String gebruikerEmail) {
		this.gebruikerEmail = gebruikerEmail;
	}
	
	/**
	 * @return the emailPerAfmelding
	 */
	public boolean isEmailPerAfmelding() {
		return emailPerAfmelding;
	}
	
	/**
	 * @param emailPerAfmelding the emailPerAfmelding to set
	 */
	public void setEmailPerAfmelding(boolean emailPerAfmelding) {
		this.emailPerAfmelding = emailPerAfmelding;
	}
	
	/**
	 * @return the emailPerDag
	 */
	public boolean isEmailPerDag() {
		return emailPerDag;
	}
	
	/**
	 * @param emailPerDag the emailPerDag to set
	 */
	public void setEmailPerDag(boolean emailPerDag) {
		this.emailPerDag = emailPerDag;
	}
	
	/**
	 * @return the emailPerWeek
	 */
	public boolean isEmailPerWeek() {
		return emailPerWeek;
	}
	
	/**
	 * @param emailPerWeek the emailPerWeek to set
	 */
	public void setEmailPerWeek(boolean emailPerWeek) {
		this.emailPerWeek = emailPerWeek;
	}
	
	/**
	 * @return the emailPerMaand
	 */
	public boolean isEmailPerMaand() {
		return emailPerMaand;
	}
	
	/**
	 * @param emailPerMaand the emailPerMaand to set
	 */
	public void setEmailPerMaand(boolean emailPerMaand) {
		this.emailPerMaand = emailPerMaand;
	}	
}
